﻿@model S4Store.Models.SellerKpi.SellerKpiPersonBodyModel
@{
    Layout = null;
    ViewBag.Title = "SellerKpiPersonBody";
}
@foreach (var seller in Model.Sellers)
{
    var brands = Model.GetCarBrands(seller);
    int i=0;
    foreach (var brand in brands)
    {
        var report = Model.GetReportByBrandAndSeller(seller,brand);
        <tr height="26" style="height:19.5pt" class="xl65">
                        @if (i++ == 0)
                        {
                            <td rowspan="@brands.Count">@seller.Name</td>
                        }
                        <td>@brand.Name</td>
                        <td class="calculated">@report.SCLDJDMB</td>
                        <td>@report.LDJDPC</td>
                        <td>@report.SCLDKHDJS</td>
                        <td class="calculated">@report.SCLDDJMB</td>
                        <td>@report.YXAKJKS</td>
                        <td>@report.SJYQSTXS</td>
                        <td>@report.SJKHCJS</td>
                        <td>@report.STMXBTXS</td>
                        <td>@report.CXJGCJS</td>
                        <td>@report.ESCPGS</td>
                        <td>@report.ZHCJS</td>
                        <td>@report.AJCJS</td>
                        <td>@report.SYYLKHXZDD</td>
                        <td>@report.DYKHXZDD</td>
                        <td>@report.JCS</td>
                        <td>@report.XCBXTBS</td>
                        <td>@report.BXXSE</td>
                        <td>@report.TCCXSSL</td>
                        <td>@report.YXZHCXSSL</td>
                        <td>@report.ZHCZHXSE</td>
                        <td>@report.XCYBS</td>
                        <td>@report.ECCGYYKHS</td>
                        <td>@report.DYLKHTJCJS</td>
                        <td>@report.SaleTarget</td>
                        <td class="calculated">@report.XLWCD.toInt()%</td>
                        <td class="calculated" @S4Store.Utils.GetBgColor(report.XLJDC >= 0)>@report.XLJDC.toInt()%</td>
                        <td class="calculated">@report.LDPCWCD.toInt()%</td>
                        <td class="calculated" @S4Store.Utils.GetBgColor(report.LDPCJDC >= 0)>@report.LDPCJDC.toInt()%</td>
                        <td class="calculated">@report.DJKHWCJD.toInt()%</td>
                        
                        <td class="calculated" @S4Store.Utils.GetBgColor(report.DJKHJDC >= 0)>@report.DJKHJDC.toInt()%</td>
                        <td class="calculated">@report.DYMBWCLV.toInt()%</td>
                        <td class="calculated">@report.SCLDDJLV.toInt()%</td>
                        <td class="calculated">@report.AKXQWZFXLV.toInt()%</td>
                        <td class="calculated">@report.SCSJLV.toInt()%</td>
                        
                        <td class="calculated">@report.SCSJCJLV.toInt()%</td>
                        <td class="calculated">@report.STMXBTXLV.toInt()%</td>
                        <td class="calculated">@report.SYKHZHLV.toInt()%</td>
                        <td class="calculated">@report.DYDJKHCJLV.toInt()%</td>
                        <td class="calculated">@report.DDJCZHLV.toInt()%</td>
                        
                        <td class="calculated">@report.CXJGCJLV.toInt()%</td>
                        <td class="calculated">@report.ESCPGLV.toInt()%</td>
                        <td class="calculated">@report.ZHLV.toInt()%</td>
                        <td class="calculated">@report.BXLV.toInt()%</td>
                        <td class="calculated">@report.AJCJLV.toInt()%</td>
                        
                        <td class="calculated">@report.PJDCBXE.toInt()</td>
                        <td class="calculated">@report.TCCXSLV.toInt()%</td>
                        <td class="calculated">@report.YXZHCXSLV.toInt()%</td>
                        <td class="calculated">@report.PJDCZHE.toInt()</td>
                        <td class="calculated">@report.XCYBSXLV.toInt()%</td>
                        
                        <td class="calculated">@report.ECYYCGLV.toInt()%</td>
                        <td class="calculated">@report.LKHTJCGLV.toInt()%</td>
                    </tr>
    }

}  

